package com.yunhe.authority.option;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Configuration
@ConfigurationProperties(prefix = "user", ignoreUnknownFields = false)
@PropertySource("classpath:config/systemoption.properties")
@Component
public class UserProperties {

    private String rootDefaultPassword;
    private String defaultPassword;

    public String getRootDefaultPassword() {
        return rootDefaultPassword;
    }

    public void setRootDefaultPassword(String rootDefaultPassword) {
        this.rootDefaultPassword = rootDefaultPassword;
    }

    public String getDefaultPassword() {
        return defaultPassword;
    }

    public void setDefaultPassword(String defaultPassword) {
        this.defaultPassword = defaultPassword;
    }
}
